package ContentDicService

import (
    "fmt"
    "server/app"
    "server/entity"
    "server/helper"
)

// 查询内容字典列表
func FindList() []entity.ContentDic {
    list := make([]entity.ContentDic, 0)
    sqlStr := fmt.Sprintf("select Code,Name,Contents from ContentDic")
    helper.PrintLogSQL(sqlStr)
    err := app.GetDatabase().Select(&list, sqlStr)
    app.Panic(err)
    return list
}
